﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="HotelFacilities.aspx.cs" Inherits="TourAgency.Admin.HotelFacilities" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:HyperLink runat="server" ID="hyperlinkCreateNewTransport" Text="Create" NavigateUrl="~/Admin/Create/NewHotelFacility.aspx"></asp:HyperLink>
    new hotel facility.<br />
    List of current facilities:
    <asp:UpdatePanel runat="server" ID="updatePanelFacilities" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:GridView ID="gridViewFacilities" runat="server" AutoGenerateColumns="false">
                <Columns>
                    <asp:TemplateField HeaderText="Board">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="labelBoardName" Text='<%# EncodeBoardName("Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Button runat="server" Text="Edit" ID="editButton" CommandArgument='<%# Eval("ID") %>'
                                OnCommand="EditBoard" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Button runat="server" Text="Delete" ID="deleteButton" CommandArgument='<%# Eval("ID") %>'
                                OnCommand="DeleteBoard" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
